﻿<!--{inc(header.view.html)}-->
  <script src="{$web_view_dir}style/js/calenderJS.js"></script>
<div class="header">    
  
                       <div class="nav">
	                                 <ul id="nav_list">
                                                 <li><a href="#" class="nav_icon" target="mainframe">订单列表</a></li>
                                                
	                                 </ul>
                       </div>
                
</div>



<div id="content">
                   <h1>订单列表</h1>

                  <div>
                                    <div class="tips_show"><img  src="{$web_view_dir}style/images/light.gif" align="absmiddle" /> <b>提示: </b>
                                                                  <span ></span>
                                    </div>




<style type="text/css">
.search_box {
padding:10px;
vertical-align:middle;
}
.search_box .l {
float:left;
vertical-align:middle;
}
.search_box .r {
float:right;
}
</style>
                                   
                                   
                                   
<form  method="post" action="<!--{url('admin/?app=order&act=ticketz')}-->" >
<div class="search_box">
<div class="l"><img  src="{$web_view_dir}style/images/it_nav.gif" align="middle">
请输入您要搜索的团购券或用户名：
<input name="keyword" value="{$keyword}" id="keyword" type="text" /> 
<select name="type">
<option value="1" <!--{if ($searchtype==1)}-->selected<!--{/if}-->>团购券编号</option> 
<option value="2" <!--{if ($searchtype==2)}-->selected<!--{/if}-->>用户名</option> 
</select>&nbsp;， 
过期时间<input name="time" value="" id="keyword" type="text" onfocus="HS_setDate(this)" /> 
<select name="used"> 
<option value="false" <!--{if ($used=='false')}-->selected<!--{/if}-->>使用状态不限</option> 
<option value="0" <!--{if ($used=='0')}-->selected<!--{/if}-->>已使用</option> 
<option value="1" <!--{if ($used=='1')}-->selected<!--{/if}-->>未使用</option> 
<option value="2" <!--{if ($used=='2')}-->selected<!--{/if}-->>已过期</option> 
</select> 
<input name="bottom" type="submit" id="bottom" value="搜索" class="buton"/>
</div>

<div class="r">

</div>

</div>
</form>

<div class="clear"></div>
                      
                                 
     
<table width="100%" cellspacing="0" cellpadding="4" border="0" align="center"  class="table_style">
<tbody>
<tr>
<td width="40%" class="bold" >产品名称</td>
<td width="10%"  class="bold">购买人</td> 
<td width="15%"  class="bold">团购券号</td> 
<td width="10%"  class="bold">过期时间</td> 
<td width="10%"  class="bold">状态</td> 
<td width="15%" align="center"  class="bold">管理</td>
</tr>


<!--{if (empty($lw_data)) }--> 
<tr>
<td colspan="8">暂时没有团购券哦。<BR>
团购券是在商品达到或者超过最低团购人数时，由系统自动生成！</td>
</tr>
<!--{/if}-->


<!--{if (!empty($lw_data)) }-->
<!--{foreach($lw_data as $_key => $_value )}-->

<tr onMouseOut="this.className=''" onMouseOver="this.className='bgcolor'"> 
<td >{$_value.name}</td>
<td >{$_value.user_name}</td>
<td >{$_value.number}</td> 
<td >{$_value.perioddate|dateymdgis}</td> 
<td ><!--{if ($_value.status==1)}-->未使用<!--{elseif ($_value.status==0)}--><font color=blue>已使用</font><!--{else}--><font color=red>已过期</font><!--{/if}--></td>
<td align="center" >
<!--{if ($_value.status!=1)}-->
<a href="?app=order&act=deleteticket&ticketid={$_value.ticketid}"  onClick="return confirm('您确认要删除该消费券吗？请谨慎使用该功能！');" >删除</a>
<!--{/if}-->
<!--{if ($_value.status==1)}--><a href="?app=order&act=warnofticket&id={$_value.ticketid}">Email到期提醒</a><!--{/if}--></td> 
</tr> 


 <!--{/foreach}--> 
<!--{/if}--> 


<style type="text/css">

.p_bar {
margin-top:5px;
}
.p_info {
border:1px solid #CCCCCC;
margin:0 3px;
padding:3px 5px;
text-align:center;
}
.p_curpage {
border:1px solid #CCCCCC;
color:#FF0000;
font-weight:bold;
margin:0 2px;
padding:3px 5px;
text-align:center;
}

.p_num  {
border:1px solid #CCCCCC;
margin:0 3px;
padding:3px 5px;
text-align:center;
}
.p_redirect {
border:1px solid #CCCCCC;
margin:0 3px;
padding:3px 5px;
text-align:center;
}

a {
color:#003366;
text-decoration:none;
}


</style>

<tr>
	<td colspan="8">
    <div class="p_bar">
    <span class="p_info">Total:&nbsp;<b>{$lw_page.total}</b>&nbsp;&nbsp;共{$lw_page.curr.num}/{$lw_page.totalpage}页</span>
    <a class="p_num" href="{$lw_page.head}">首页</a>
    <a class="p_num" href="{$lw_page.up}">&lt;&lt;</a>
    <a class="p_num" href="{$lw_page.up}">上一页</a>
    <span class="p_curpage">{$lw_page.curr.num}</span>
    <a  class="p_num" href="{$lw_page.down}">下一页</a>
    <a  class="p_num" href="{$lw_page.down}">&gt;&gt;</a>
    <a  class="p_num" href="{$lw_page.foot}">末页</a>    
    
    </div>
    </td>
</tr>


</tbody>
</table>
                        
                                 
                                 
                                 
                                 
                                 
                                 
                                 
                                 
                                 
                                 
                                 

                 </div>

</div>



<!--{inc(footer.view.html)}-->